projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
030752a
)
nitrogen: Use unsigned long to specify the total RAM size
author
[email protected]
<
[email protected]
>
Thu, 14 Mar 2013 02:32:55 +0000
(
02:32
+0000)
committer
Stefano Babic
<
[email protected]
>
Fri, 15 Mar 2013 13:39:44 +0000
(14:39 +0100)
When building for the nitrogen boards with 2GiB the following warning happens:
nitrogen6x.c:89:38: warning: integer overflow in expression [-Woverflow]
2GiB can not fit in 32-bits, so use ulong instead.
Reported-by: Albert Aribaud <
[email protected]
>
Signed-off-by: Fabio Estevam <
[email protected]
>
board/boundary/nitrogen6x/nitrogen6x.c
patch
|
blob
|
history
diff --git
a/board/boundary/nitrogen6x/nitrogen6x.c
b/board/boundary/nitrogen6x/nitrogen6x.c
index 0dbb6d26bfb6af53b08663346550b31cc7369bae..229c2378396d43a365d6682af35c0e519ccd69d4 100644
(file)
--- a/
board/boundary/nitrogen6x/nitrogen6x.c
+++ b/
board/boundary/nitrogen6x/nitrogen6x.c
@@
-86,7
+86,7
@@
DECLARE_GLOBAL_DATA_PTR;
int dram_init(void)
{
- gd->ram_size =
CONFIG_DDR_MB * 1024 * 1024
;
+ gd->ram_size =
((ulong)CONFIG_DDR_MB * 1024 * 1024)
;
return 0;
}